home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_303 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2005-09-27  |  424 b   |  21 lines

  1. on(press){
  2.    if(_root.spoints > 0)
  3.    {
  4.       if(_root.str < 5)
  5.       {
  6.          _root.str += 1;
  7.          _root.str1 = "Strength: " + _root.str;
  8.          _root.spoints -= 1;
  9.          _root.mstats = "You currently have " + _root.spoints + " stats.";
  10.       }
  11.       else
  12.       {
  13.          _root.no = "Strength currently maxed!";
  14.       }
  15.    }
  16.    else
  17.    {
  18.       _root.no = "You have no more points!";
  19.    }
  20. }
  21.